<div id="user_login" class="box">
<form action="<?php echo tos_router_url(array('m'=>'user', 'a'=>'login'), true);?>" method="post">
<table>
<tbody>
    <tr>
        <td>Username:</td>
    </tr>
    <tr>
        <td><input class="text" name="username" type="text" value="<?php $this->write('username');?>" /></td>
    </tr>
    <tr>
        <td>Password:</td>
    </tr>
    <tr>
        <td><input class="text" name="password" type="password" value="" /></td>
    </tr>
    <?php if ($this->has_data('error')): ?>
    <tr>
        <td><span class="error"><?php $this->write('error'); ?></span></td>
    </tr>
    <?php endif;?>
    <tr>
        <td><input class="submit" type="submit" value="Sign In" /></td>
    </tr>
</tbody>
</table>
<input type="hidden" name="http_referer" value="<?php $this->write('http_referer');?>" />
</form>
</div>